﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserRegistration.aspx.cs"
    Inherits="UserRegistration" CodeFileBaseClass="Cinemon.BaseClass" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Cinemon</title>
    <style type="text/css">
        body
        {
            font-family: Verdana;
            margin-top: 0;
            margin-left: 0;
            margin-right: 0;
            margin-bottom: 0;
        }
        
        #Login
        {
            width: 300px;
            margin-left: auto;
            margin-right: auto;
            position: relative;
        }
    </style>
</head>
<body style="background-color: #cfdae9">
    <form id="form1" runat="server">
    <div>
        <table cellspacing="0" cellpadding="0" width="100%" style="background-color: #375379">
            <tr>
                <td align="center">
                    <asp:Label ID="Label4" runat="server" Text="Cinema Management System" Font-Bold="true"
                        Font-Size="16pt" ForeColor="White"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <br />
    <br />
    <br />
    <br />
    <div>
        <table width="100%">
            <tr>
                <td align="center">
                    <table cellspacing="0" style="border-width: 1px; border-style: solid; border-color: #375379;
                        background-color: White; width: 500px;">
                        <tr style="background-color: #375379">
                            <td>
                                <table width="100%">
                                    <tr>
                                        <td align="center">
                                            <asp:Label ID="Label1" runat="server" Text="Register" ForeColor="White" Font-Bold="true"
                                                Font-Size="Large"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style="font-size: small;">
                                    <tr style="width: 10px;">
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label2" runat="server" Text="Username : "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="tbxUsername" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label3" runat="server" Text="Email Address : "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="tbxEmailAddress" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label5" runat="server" Text="Confirm Email Address : "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="tbxConfirmEmailAddress" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label6" runat="server" Text="Password : "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="tbxPassword" TextMode="Password" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label7" runat="server" Text="Confirm Password : "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="tbxConfirmPassword" TextMode="Password" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label8" runat="server" Text="Security Question : "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:DropDownList runat="server" ID="ddlSecurityQuestion" Width="300px">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label9" runat="server" Text="Answer : "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="tbxAnswer" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label10" runat="server" Text="First Name : "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="tbxFirstName" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label11" runat="server" Text="Surname : "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="tbxSurname" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label12" runat="server" Text="Cell Number : "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="tbxCellNumber" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label13" runat="server" Text="Home Address : "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="tbxHomeAddress" TextMode="MultiLine" Height="50px"
                                                Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="right">
                                            <asp:Button runat="server" Text="Register" ID="btnRegister" OnClick="btnRegister_Click" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label runat="server" ID="lblRegisterStatus"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxPassword"
                                                ErrorMessage="Password is required." ForeColor="Red">
                                            </asp:RequiredFieldValidator>
                                            <asp:CompareValidator ID="cvPassword" runat="server" ControlToValidate="tbxPassword"
                                                ControlToCompare="tbxConfirmPassword" ErrorMessage="Passwords do not match."
                                                ForeColor="Red" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbxEmailAddress"
                                                ErrorMessage="Email Address Invalid." ValidationExpression="^((?:(?:(?:[a-zA-Z0-9][\.\-\+_]?)*)[a-zA-Z0-9])+)\@((?:(?:(?:[a-zA-Z0-9][\.\-_]?){0,62})[a-zA-Z0-9])+)\.([a-zA-Z0-9]{2,6})$"
                                                ForeColor="Red" />
                                            <asp:CompareValidator ID="cvEmail" runat="server" ControlToValidate="tbxEmailAddress"
                                                ControlToCompare="tbxConfirmEmailAddress" ErrorMessage="Email address does not match."
                                                ForeColor="Red" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table cellspacing="0" style="border-width: 1px; border-style: solid; border-color: #375379;
                        background-color: White; width: 500px">
                        <tr>
                            <td>
                                <table width="100%" style="font-size: small">
                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="Label14" runat="server" Text="Already have an account?"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:Button ID="btnLogin" runat="server" Text="Login Here" OnClick="btnLogin_Click"
                                                CausesValidation="false" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <br />
                    </table>
                </td>
            </tr>
        </table>
        <asp:Label runat="server" ID="lblError"></asp:Label>
    </div>
    </form>
</body>
</html>
